package tests;

import static org.junit.Assert.*;

import org.junit.Test;

import tictacstego.TTTAgent;
import tictacstego.TTTBoard;
import tictacstego.TTTManager;


public class TicTacStegoTest {
	
	/*
	 * You should implement your own tests to test
	 * your functions.
	 */
	
    @Test
	public void testBoard() {
	    TTTAgent agent = new TTTAgent("test");
	        
		TTTBoard board = new TTTBoard();
		
		agent.getMove(board);
		assertTrue(board.playMove("A1"));
		assertTrue(board.playMove("A0"));
		assertTrue(board.playMove("B0"));
		assertTrue(board.playMove("B1"));
		assertTrue(board.playMove("C2"));
		assertTrue(board.playMove("B2"));
		agent.getRCVdMssg();
		System.out.print(board.toString());
	}
    
    @Test
    public void testAll() {
        TTTAgent a1 = new TTTAgent("Hi");
        TTTAgent a2 = new TTTAgent("Jk");
        TTTManager manager = new TTTManager(a1, a2);
        manager.runGame();
        manager.runAllTheGames();
    }
	
}
